how to fix memory cannot be read issue